package controller.common;

import mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import pojos.common.ReplyMessage;

@Controller
public class YDTest {

    @Autowired
    private TestMapper testMapper;

    @GetMapping("/showTest")
    @ResponseBody
    public ReplyMessage doShowTable() {
        try {
            testMapper.doShowTable();
        } catch (Exception e) {
            e.printStackTrace();
        }

        ReplyMessage replyMessage = new ReplyMessage();
        replyMessage.setStatus(200);
        return replyMessage;
    }
}
